<?php
/**
 * Template Name: Jokes, Videos, Images Template
 */
get_header();
global $dktmSetting;
?>

<div class="wrapper xinformation-page archive-info" >
    <div class="bread-search">
        <aside>
            <?php
            //get_dktm_popup_edit('information');
            dktm_breadcrumbs();
            ?>
        </aside>
        <aside class="search">
            <?php //get_template_part('searchform', "information");  ?>
        </aside>
        <div class="clear"></div>
    </div>
    <div id="primary">
        <div class="single-page" style="padding-bottom: 0;">
            <?php
            $profs = new WP_Query(array('post_type' => 'page',  'post_status'=>'publish', 'page_id' => @$dktmSetting['jokes_id']));
            while ($profs->have_posts()) {
                $profs->the_post();
                // echo get_the_ID();
                ?>
                <header class="entry-header">
                    <h1 class="entry-title"><?php the_title(); ?></h1>

                </header><!-- .entry-header -->
                <div class="description"><?php the_content(); ?></div>
            <?php }wp_reset_query();
            ?>
        </div>
        <div id="content" role="main" class="sub-single-page">
            <div id="masonry_wrap" class="wrapper clearfix navigation-single information-page"></div><!-- #content -->
        </div>
    </div><!-- #primary -->
    <?php get_sidebar('entertainment'); ?>
    <div class="clear"></div>
</div>
<?php get_footer(); ?>
<script>
    $(document).ready(function() {
        activateMasonry();
        loadMore(1,'ajax-entertainment');
    });
</script>